//
//  HD_LiDa_Playermanager.h
//  HDMusicDemo
//
//  Created by Lida on 2017/8/14.
//  Copyright © 2017年 Lida. All rights reserved.
//


/*
 后台音乐播放及锁屏信息显示
 版本1.0.0
 作者:Lida
 */

/*
 其他文件需要的设置
 1.在info.plist文件添加后台音乐模式
 2.AppDelegate.h 文件添加playerRemoteEventBlock用于接收远程控制事件，并重写remoteControlReceivedWithEvent方法
 3.歌词文件为 lrc 文件，
 */

#import <Foundation/Foundation.h>
#import "Single.h"
#import "MusicInfo.h"

typedef enum{
    SingleCycle,//单曲循环
    RandomPlay,//随机播放
    OrderPlay//循环播放
}CycleType;

@interface HD_LiDa_Playermanager : NSObject
singleton_interface(HD_LiDa_Playermanager)
@property (strong, nonatomic) MusicInfo           *currentMusic;
@property (strong, nonatomic) NSMutableArray      *allMusicArr;
@property (assign, nonatomic) CycleType           cycleType;
@property (strong, nonatomic) NSMutableDictionary *lrcDic;
@property (strong, nonatomic) NSMutableArray      *lrcTimeArr;

- (MusicInfo *)nextMusicInfo;

- (MusicInfo *)upMusicInfo;

@end
